home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / ACL / Animation Class Library / Headers / AnimScrollBase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-01  |  1.7 KB  |  71 lines  |  [TEXT/MPCC]

  1.  
  2. /********************************************
  3.  **** Animation Class Library V1.0 © 1994 Yves Schmid & Alia Development
  4.  ****
  5.  **** AnimScrollBase.h
  6.  ****
  7.  **** Created:      28 May 1994
  8.  **** Modified:     01 September 1994
  9.  **** Version:      0
  10.  **** Compatible:   C++, Mac System 7
  11.  ****
  12.  **** Description:  AnimScrollBase is an AnimBase which has the ability to 
  13.  ****                scroll the background picture. 
  14.  ****
  15.  ****                AnimScrollBase is a child class of the AnimBase class.
  16.  ****
  17.  *******************/
  18.  
  19.  
  20. #ifndef AnimScrollBase_H
  21. #define AnimScrollBase_H
  22.  
  23.  
  24. #include "AnimBase.h"
  25.  
  26.  
  27. class AnimScrollBase: public AnimBase
  28. {
  29.  
  30.     //***********************************************************
  31.     //.............. P U B L I C   M E T H O D S.................
  32.  
  33.     public:
  34.  
  35.      inline float getscrolloffsetx() const {return scrolloffsetx;}
  36.      inline float getscrolloffsety() const {return scrolloffsety;}
  37.     inline float gethscrollvect() const {return hscrollvect;}
  38.     inline float getvscrollvect() const {return vscrollvect;}
  39.  
  40.      inline void setscrolloffsetx(const float sx) {scrolloffsetx = sx;}
  41.      inline void setscrolloffsety(const float sy) {scrolloffsety = sy;}
  42.     inline void sethscrollvect(const float vh) {hscrollvect = vh;}
  43.     inline void setvscrollvect(const float vv) {vscrollvect = vv;}
  44.  
  45.  
  46.     virtual Boolean update(void);
  47.     
  48.     AnimScrollBase(void);
  49.     ~AnimScrollBase(void);
  50.  
  51.  
  52.     //***********************************************************
  53.  
  54.     //..........................................................
  55.     // You should not call the following methods!
  56.  
  57.     virtual void updatebackground(void);
  58.  
  59.     //..........................................................
  60.  
  61.  
  62.     private:
  63.  
  64.     float    scrolloffsetx,scrolloffsety;
  65.     float    hscrollvect,vscrollvect;
  66.  
  67. };
  68.  
  69. #endif
  70.  
  71.